<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
     <title>后台管理系统</title>
    <link rel="stylesheet" href="/eleadmin/assets/css/layui.css"/>
    <link rel="stylesheet" href="/eleadmin/assets/css/admin.css?v=318"/>
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!-- 头部 -->
    <div class="layui-header">
        <div class="layui-logo">
            <img src="/static/images/logo.png"/>
<!--            <cite>&nbsp;管理后台</cite>-->
            <cite>&nbsp;{$Think.lang.systemName }</cite>
        </div>
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="flexible" title="侧边伸缩"><i class="layui-icon layui-icon-shrink-right"></i></a>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="refresh" title="刷新"><i class="layui-icon layui-icon-refresh-3"></i></a>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide-xs" lay-unselect>
                <a ew-event="fullScreen" title="全屏"><i class="layui-icon layui-icon-screen-full"></i></a>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a>
                    <img src="/eleadmin/assets/images/head.jpg" class="layui-nav-img">
                    <cite>{$userInfo['name']}</cite>
                </a>
                <dl class="layui-nav-child">
<!--                    <dd lay-unselect><a ew-href="page/template/user-info.html">个人中心</a></dd>-->
                    <dd lay-unselect><a ew-href="{:url('admin_user/persional')}">修改个人信息</a></dd>
                    <hr>
                    <dd lay-unselect><a ew-event="logout" data-url="/auth/login/loginOut">退出</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a>
                    <cite>{$langName}</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd lay-unselect><a href="#" onclick="setLanguage('zh-cn')">中文</a></dd>
                    <hr>
                    <dd lay-unselect><a href="#" onclick="setLanguage('en-us')">English</a></dd>
                    <hr>
                    <dd lay-unselect><a href="#" onclick="setLanguage('kr')">にっぽん</a></dd>
                    <hr>
                    <dd lay-unselect><a href="#" onclick="setLanguage('jp-ja')">한국어</a></dd>
                </dl>


            </li>
        </ul>
    </div>

    <!-- 侧边栏 -->
    <div class="layui-side">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree arrow2" lay-filter="admin-side-nav" lay-shrink="_all">
<!--                <li class="layui-nav-item">-->
<!--                    <a><i class="layui-icon layui-icon-home"></i>&emsp;<cite>Dashboard</cite></a>-->
<!--                    <dl class="layui-nav-child">-->
<!--                        <dd><a lay-href="page/console/workplace.html">工作台</a></dd>-->
<!--                        <dd><a lay-href="page/console/console.html">控制台</a></dd>-->
<!--                        <dd><a lay-href="page/console/dashboard.html">分析页</a></dd>-->
<!--                    </dl>-->
<!--                </li>-->
                {volist name="menuData" id="menu"}
                    <li class="layui-nav-item">
                        <a><i class="layui-icon layui-icon-set"></i>&emsp;<cite>{$menu.title}</cite></a>
                        {if !empty($menu['children'])}
                        <dl class="layui-nav-child">
                            {volist name="$menu['children']" id="item"}
                            <dd><a lay-href="{$item['href']}">{$item.title}</a></dd>
                            {/volist}
                        </dl>
                        {/if}
                    </li>
                {/volist}
            </ul>
        </div>
    </div>
    <!-- 主体部分 -->
    <div class="layui-body"></div>
    <!-- 底部 -->
</div>
<!-- 加载动画 -->
<div class="page-loading">
    <div class="ball-loader">
        <span></span><span></span><span></span><span></span>
    </div>
</div>

<!-- js部分 -->
<script type="text/javascript" src="/eleadmin/assets/layui/layui.js"></script>
<script type="text/javascript" src="/eleadmin/assets/js/common.js?v=318"></script>
<script>
    var $;
    layui.use(['index'], function () {
        $ = layui.jquery;
        var index = layui.index;
        // 默认加载主页
        index.loadHome({
            menuPath: '/auth/index/welcome.html',
            menuName: '<i class="layui-icon layui-icon-home"></i>'
        });
    });

    function setLanguage(language) {
        // 设置语言并刷新界面
        var params = {
            langType:language
        }
        $.post("{:url('/auth/login/setLang')}",params,function (res) {
            if (res.code === 0) {
                window.location.reload();
            }
        },'JSON');
    }

</script>
</body>
</html>